<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysCustBean.id}"/>
		<f:event type="preRenderView" listener="#{sysCustBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Cust"/>

	<ui:define name="header">
		Sys Cust
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysCustBean.id}">
				Edit existing Sys Cust
			</c:when>
			<c:otherwise>
				Create a new Sys Cust
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysCustBeanSysCustSysCustStatus" value="Sys Cust Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysCustStatusBean.converter}" id="sysCustBeanSysCustSysCustStatus" value="#{sysCustBean.sysCust.sysCustStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCustStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCustBeanSysCustSysCustStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustSysNameTitle" value="Sys Name Title:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysNameTitleBean.converter}" id="sysCustBeanSysCustSysNameTitle" value="#{sysCustBean.sysCust.sysNameTitle}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysNameTitleBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCustBeanSysCustSysNameTitle" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustCustCode" value="Cust Code:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustCustCode" maxLength="10" value="#{sysCustBean.sysCust.custCode}"/>
					<h:message for="sysCustBeanSysCustCustCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustCreatedDate" value="Created Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustCreatedDate" maxLength="10" value="#{sysCustBean.sysCust.createdDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBeanSysCustCreatedDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustCustOccupationNo" value="Cust Occupation No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustCustOccupationNo" value="#{sysCustBean.sysCust.custOccupationNo}"/>
					<h:message for="sysCustBeanSysCustCustOccupationNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustCustGrpNo" value="Cust Grp No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustCustGrpNo" value="#{sysCustBean.sysCust.custGrpNo}"/>
					<h:message for="sysCustBeanSysCustCustGrpNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustIdCardNo" value="Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustIdCardNo" maxLength="20" required="true" value="#{sysCustBean.sysCust.idCardNo}"/>
					<h:message for="sysCustBeanSysCustIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysCustBeanSysCustIdCardIssuedDate" value="Id Card Issued Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustIdCardIssuedDate" maxLength="10" value="#{sysCustBean.sysCust.idCardIssuedDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBeanSysCustIdCardIssuedDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustIdCardExpireDate" value="Id Card Expire Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustIdCardExpireDate" maxLength="10" value="#{sysCustBean.sysCust.idCardExpireDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBeanSysCustIdCardExpireDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustIdCardIssuedAt" value="Id Card Issued At:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustIdCardIssuedAt" maxLength="100" value="#{sysCustBean.sysCust.idCardIssuedAt}"/>
					<h:message for="sysCustBeanSysCustIdCardIssuedAt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustFirstName" value="First Name:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustFirstName" maxLength="50" required="true" value="#{sysCustBean.sysCust.firstName}"/>
					<h:message for="sysCustBeanSysCustFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysCustBeanSysCustLastName" value="Last Name:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustLastName" maxLength="50" required="true" value="#{sysCustBean.sysCust.lastName}"/>
					<h:message for="sysCustBeanSysCustLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysCustBeanSysCustSexNo" value="Sex No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustSexNo" value="#{sysCustBean.sysCust.sexNo}"/>
					<h:message for="sysCustBeanSysCustSexNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustBirthDate" value="Birth Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustBirthDate" maxLength="10" value="#{sysCustBean.sysCust.birthDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBeanSysCustBirthDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddrNo" value="Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddrNo" maxLength="50" value="#{sysCustBean.sysCust.addrNo}"/>
					<h:message for="sysCustBeanSysCustAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddrMoo" value="Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddrMoo" value="#{sysCustBean.sysCust.addrMoo}"/>
					<h:message for="sysCustBeanSysCustAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddrBuilding" value="Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddrBuilding" maxLength="100" value="#{sysCustBean.sysCust.addrBuilding}"/>
					<h:message for="sysCustBeanSysCustAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddrSoi" value="Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddrSoi" maxLength="50" value="#{sysCustBean.sysCust.addrSoi}"/>
					<h:message for="sysCustBeanSysCustAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddrRoad" value="Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddrRoad" maxLength="50" value="#{sysCustBean.sysCust.addrRoad}"/>
					<h:message for="sysCustBeanSysCustAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr1" value="Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr1" maxLength="100" value="#{sysCustBean.sysCust.addr1}"/>
					<h:message for="sysCustBeanSysCustAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr2No" value="Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr2No" value="#{sysCustBean.sysCust.addr2No}"/>
					<h:message for="sysCustBeanSysCustAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr3No" value="Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr3No" value="#{sysCustBean.sysCust.addr3No}"/>
					<h:message for="sysCustBeanSysCustAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr4No" value="Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr4No" value="#{sysCustBean.sysCust.addr4No}"/>
					<h:message for="sysCustBeanSysCustAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr4" value="Addr 4:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr4" maxLength="50" value="#{sysCustBean.sysCust.addr4}"/>
					<h:message for="sysCustBeanSysCustAddr4" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAddr5" value="Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAddr5" maxLength="50" value="#{sysCustBean.sysCust.addr5}"/>
					<h:message for="sysCustBeanSysCustAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustPhoneNo" value="Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustPhoneNo" maxLength="20" value="#{sysCustBean.sysCust.phoneNo}"/>
					<h:message for="sysCustBeanSysCustPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustMobileNo" value="Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustMobileNo" maxLength="20" value="#{sysCustBean.sysCust.mobileNo}"/>
					<h:message for="sysCustBeanSysCustMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustEmail" value="Email:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustEmail" value="#{sysCustBean.sysCust.email}"/>
					<h:message for="sysCustBeanSysCustEmail" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustIncomeLevelNo" value="Income Level No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustIncomeLevelNo" value="#{sysCustBean.sysCust.incomeLevelNo}"/>
					<h:message for="sysCustBeanSysCustIncomeLevelNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustCustLoanContractStatusNo" value="Cust Loan Contract Status No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustCustLoanContractStatusNo" value="#{sysCustBean.sysCust.custLoanContractStatusNo}"/>
					<h:message for="sysCustBeanSysCustCustLoanContractStatusNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustRegDate" value="Reg Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustRegDate" maxLength="10" value="#{sysCustBean.sysCust.regDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBeanSysCustRegDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustRegOrgNo" value="Reg Org No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustRegOrgNo" value="#{sysCustBean.sysCust.regOrgNo}"/>
					<h:message for="sysCustBeanSysCustRegOrgNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustComment" value="Comment:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustComment" maxLength="500" value="#{sysCustBean.sysCust.comment}"/>
					<h:message for="sysCustBeanSysCustComment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeName" value="Office Name:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeName" maxLength="50" value="#{sysCustBean.sysCust.officeName}"/>
					<h:message for="sysCustBeanSysCustOfficeName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddrNo" value="Office Addr No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddrNo" maxLength="50" value="#{sysCustBean.sysCust.officeAddrNo}"/>
					<h:message for="sysCustBeanSysCustOfficeAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddrMoo" value="Office Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddrMoo" value="#{sysCustBean.sysCust.officeAddrMoo}"/>
					<h:message for="sysCustBeanSysCustOfficeAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddrBuilding" value="Office Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddrBuilding" maxLength="100" value="#{sysCustBean.sysCust.officeAddrBuilding}"/>
					<h:message for="sysCustBeanSysCustOfficeAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddrSoi" value="Office Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddrSoi" maxLength="50" value="#{sysCustBean.sysCust.officeAddrSoi}"/>
					<h:message for="sysCustBeanSysCustOfficeAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddrRoad" value="Office Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddrRoad" maxLength="50" value="#{sysCustBean.sysCust.officeAddrRoad}"/>
					<h:message for="sysCustBeanSysCustOfficeAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddr1" value="Office Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddr1" maxLength="100" value="#{sysCustBean.sysCust.officeAddr1}"/>
					<h:message for="sysCustBeanSysCustOfficeAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddr2No" value="Office Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddr2No" value="#{sysCustBean.sysCust.officeAddr2No}"/>
					<h:message for="sysCustBeanSysCustOfficeAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddr3No" value="Office Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddr3No" value="#{sysCustBean.sysCust.officeAddr3No}"/>
					<h:message for="sysCustBeanSysCustOfficeAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddr4No" value="Office Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddr4No" value="#{sysCustBean.sysCust.officeAddr4No}"/>
					<h:message for="sysCustBeanSysCustOfficeAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficeAddr5" value="Office Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficeAddr5" maxLength="10" value="#{sysCustBean.sysCust.officeAddr5}"/>
					<h:message for="sysCustBeanSysCustOfficeAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustOfficePhoneNo" value="Office Phone No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustOfficePhoneNo" maxLength="20" value="#{sysCustBean.sysCust.officePhoneNo}"/>
					<h:message for="sysCustBeanSysCustOfficePhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustAname1" value="Aname 1:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBeanSysCustAname1" maxLength="8" value="#{sysCustBean.sysCust.aname1}"/>
					<h:message for="sysCustBeanSysCustAname1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustSysCustBlacklists" value="Sys Cust Blacklists:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysCustBean.sysCust.sysCustBlacklists}"/>
					<h:dataTable id="sysCustBeanSysCustSysCustBlacklists" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Cust Blacklist Type"/>
							</f:facet>
							<h:link outcome="/form/sysCustBlacklist/view">
								<f:param name="id" value="#{_item.blNo}"/>
								<h:outputText id="forgeviewdisplayitemSysCustBlacklistType" value="#{forgeview:display(_item.sysCustBlacklistType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysCustBlacklistTypeBean.converter}" id="sysCustBlacklistBeanAddSysCustBlacklistType" value="#{sysCustBlacklistBean.add.sysCustBlacklistType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCustBlacklistTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sysCustBlacklistBeanAddSysCustBlacklistType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Bl Org No"/>
							</f:facet>
							<h:link outcome="/form/sysCustBlacklist/view">
								<f:param name="id" value="#{_item.blNo}"/>
								<h:outputText id="itemBlOrgNo" value="#{_item.blOrgNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysCustBlacklistBeanAddBlOrgNo" value="#{sysCustBlacklistBean.add.blOrgNo}"/>
								<h:message for="sysCustBlacklistBeanAddBlOrgNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Bl Date"/>
							</f:facet>
							<h:link outcome="/form/sysCustBlacklist/view">
								<f:param name="id" value="#{_item.blNo}"/>
								<h:outputText id="itemBlDate" value="#{_item.blDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysCustBlacklistBeanAddBlDate" maxLength="10" value="#{sysCustBlacklistBean.add.blDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sysCustBlacklistBeanAddBlDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Bl Comment"/>
							</f:facet>
							<h:link outcome="/form/sysCustBlacklist/view">
								<f:param name="id" value="#{_item.blNo}"/>
								<h:outputText id="itemBlComment" value="#{_item.blComment}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysCustBlacklistBeanAddBlComment" maxLength="500" value="#{sysCustBlacklistBean.add.blComment}"/>
								<h:message for="sysCustBlacklistBeanAddBlComment" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Bl Is Cancel Status"/>
							</f:facet>
							<h:link outcome="/form/sysCustBlacklist/view">
								<f:param name="id" value="#{_item.blNo}"/>
								<h:outputText id="itemBlIsCancelStatus" value="#{_item.blIsCancelStatus}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysCustBlacklistBeanAddBlIsCancelStatus" value="#{sysCustBlacklistBean.add.blIsCancelStatus}"/>
								<h:message for="sysCustBlacklistBeanAddBlIsCancelStatus" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysCustBlacklistBean.added)}" id="sysCustBeanSysCustSysCustBlacklistsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysCustBlacklistBean.add.sysCust}" value="#{sysCustBean.sysCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustSaleLoanOffers" value="Sale Loan Offers:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysCustBean.sysCust.saleLoanOffers}"/>
					<h:dataTable id="sysCustBeanSysCustSaleLoanOffers" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rec No"/>
							</f:facet>
							<h:link outcome="/form/saleLoanOffer/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="itemRecNo" value="#{_item.recNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleLoanOfferBeanAddRecNo" value="#{saleLoanOfferBean.add.recNo}"/>
								<h:message for="saleLoanOfferBeanAddRecNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Type No"/>
							</f:facet>
							<h:link outcome="/form/saleLoanOffer/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="itemLoanTypeNo" value="#{_item.loanTypeNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleLoanOfferBeanAddLoanTypeNo" value="#{saleLoanOfferBean.add.loanTypeNo}"/>
								<h:message for="saleLoanOfferBeanAddLoanTypeNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleLoanOfferBean.added)}" id="sysCustBeanSysCustSaleLoanOffersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleLoanOfferBean.add.sysCust}" value="#{sysCustBean.sysCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBeanSysCustSaleLoanContracts" value="Sale Loan Contracts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysCustBean.sysCust.saleLoanContracts}"/>
					<h:dataTable id="sysCustBeanSysCustSaleLoanContracts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Hr Emp"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{hrEmpBean.converter}" id="saleLoanContractBeanAddHrEmp" value="#{saleLoanContractBean.add.hrEmp}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddHrEmp" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Vehicle Brand"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysVehicleBrand" value="#{forgeview:display(_item.sysVehicleBrand)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysVehicleBrandBean.converter}" id="saleLoanContractBeanAddSysVehicleBrand" value="#{saleLoanContractBean.add.sysVehicleBrand}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleBrandBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysVehicleBrand" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sale Loan Grade"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSaleLoanGrade" value="#{forgeview:display(_item.saleLoanGrade)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{saleLoanGradeBean.converter}" id="saleLoanContractBeanAddSaleLoanGrade" value="#{saleLoanContractBean.add.saleLoanGrade}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanGradeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSaleLoanGrade" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Org"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysOrgBean.converter}" id="saleLoanContractBeanAddSysOrg" value="#{saleLoanContractBean.add.sysOrg}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysOrgBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysOrg" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Income Level"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysIncomeLevel" value="#{forgeview:display(_item.sysIncomeLevel)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysIncomeLevelBean.converter}" id="saleLoanContractBeanAddSysIncomeLevel" value="#{saleLoanContractBean.add.sysIncomeLevel}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysIncomeLevelBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysIncomeLevel" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleLoanContractBean.added)}" id="sysCustBeanSysCustSaleLoanContractsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleLoanContractBean.add.sysCust}" value="#{sysCustBean.sysCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysCustBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysCustBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysCustBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysCustBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>